using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/*
public class PlayerAnimation : MobAnimation{

	protected override void GetComponentsReference() {
		base.GetComponentsReference();
		player=GetComponent<Player>();
		weapons=GetComponentsInChildren<WeaponSlot>();
	}

	Player player;
	WeaponSlot[] weapons;

	protected override void Update() {
		base.Update();
		if(weapons[player.weaponIndex].weapon!=null) {
			if(weapons[player.weaponIndex].weapon.state.aimAngle.IfBetween(Angle.down,Angle.up)) spriteRenderer.flipX=false;
			else spriteRenderer.flipX=true;
		} else {
			if(InputManager.mousePosition.x>rigidbody.position.x) spriteRenderer.flipX=false;
			else spriteRenderer.flipX=true;
		}
	}
}
*/